// 假数据配置
export const mockData = {
  // 数据总览统计信息
  overviewStats: {
    totalUsers: 112893,
    publishedSurveys: 112893,
    participatedSurveys: 112893,
    discussions: 112893
  },

  // 问卷进度信息
  surveyProgress: [
    {
      id: 1,
      title: 'Ai人工智能问卷',
      progress: 30,
      totalParticipants: 150,
      completedParticipants: 45
    },
    {
      id: 2,
      title: '威廉创造力问卷',
      progress: 45,
      totalParticipants: 200,
      completedParticipants: 90
    },
    {
      id: 3,
      title: '创造性衡量问卷',
      progress: 60,
      totalParticipants: 100,
      completedParticipants: 60
    }
  ],

  // 最新讨论记录
  latestDiscussions: [
    {
      id: 1,
      title: '关于AI在问卷调查中的应用',
      author: '张三',
      time: '2024-01-15 14:30',
      content: 'AI技术可以大大提高问卷设计的效率...',
      likes: 15,
      replies: 8
    },
    {
      id: 2,
      title: '如何提高问卷回收率',
      author: '李四',
      time: '2024-01-15 10:20',
      content: '问卷回收率是调研成功的关键因素...',
      likes: 23,
      replies: 12
    },
    {
      id: 3,
      title: '问卷设计的最佳实践',
      author: '王五',
      time: '2024-01-14 16:45',
      content: '好的问卷设计应该遵循以下原则...',
      likes: 18,
      replies: 6
    }
  ],

  // 新加入用户
  newUsers: [
    {
      id: 1,
      username: 'user001',
      nickname: '新用户001',
      avatar: 'https://via.placeholder.com/40',
      joinTime: '2024-01-15 15:30',
      status: 'active'
    },
    {
      id: 2,
      username: 'user002',
      nickname: '新用户002',
      avatar: 'https://via.placeholder.com/40',
      joinTime: '2024-01-15 14:20',
      status: 'active'
    },
    {
      id: 3,
      username: 'user003',
      nickname: '新用户003',
      avatar: 'https://via.placeholder.com/40',
      joinTime: '2024-01-15 13:15',
      status: 'active'
    }
  ]
};

// 获取假数据的工具函数
export const getMockData = (type) => {
  return new Promise((resolve) => {
    // 模拟网络延迟
    setTimeout(() => {
      resolve({
        code: 200,
        data: mockData[type],
        message: '获取成功'
      });
    }, 500);
  });
};
